package com.youmingxing.bean;

import org.json.JSONObject;

/**
 * @author evilyin(ChenZhixi)
 * @since 15/9/11
 */
public class Actor {
    private int id = 0;
    private String name="";
    private String gender="";
    private String imageUrl="";

    public Actor(JSONObject object) {
        if (object != null) {
            id = object.optInt("id");
            name = object.optString("name");
            gender = object.optString("gender");
            imageUrl = object.optString("headimg");
        }
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getGender() {
        return gender;
    }

    public String getImageUrl() {
        return imageUrl;
    }
}
